<html>
<head>
<title>::.::.:: APPMA  ||  Form Member ::.::.::</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- ImageReady Styles (index.psd) -->

<link href="css/styleinner.css" rel="stylesheet" type="text/css">

<link href="css/css_tab/samples.css" rel="stylesheet" type="text/css">
<link href="css/css_tab/SprySlidingPanels.css" rel="stylesheet" type="text/css">
<link href="css/css_tab/tab_style.css" rel="stylesheet" type="text/css">
<!-- End ImageReady Styles -->
<script src="java/SprySlidingPanels.js" type="text/javascript"></script>
<script language="JavaScript" type="text/JavaScript">

function validate()
{
var regno=document.getElementById("regno").value; 
var status=document.getElementById("status").value;
var firmname=document.getElementById("firmname").value;
var headoffice=document.getElementById("headoffice").value;
var fax=document.getElementById("fax").value;
var phres=document.getElementById("phres").value;
var streg=document.getElementById("streg").value;
var catogary=document.getElementById("catogary").value;
var name=document.getElementById("name").value;
var mobile=document.getElementById("mobile").value;
var cnic=document.getElementById("cnic").value;
var established=document.getElementById("established").value;
var phno=document.getElementById("phno").value;
var email=document.getElementById("email").value;
var ntn=document.getElementById("ntn").value;


submitOK="true";

if (regno==null||regno==""||regno=="_%")
 {
 alert("Please Enter The Valid Regestration Number ! ");
 submitOK="false";
 }
 
 if (status==null||status==""||status=="_%")
 {
 alert("Please Enter The Valid Designation ! ");
 submitOK="false";
 }
 
 if (firmname==null||firmname==""||firmname=="_%")
 {
 alert("Please Enter The Valid Firm Name ! ");
 submitOK="false";
 }
 
 if (headoffice==null||headoffice==""||headoffice=="_%")
 {
 alert("Please Enter The Office Address ! ");
 submitOK="false";
 }
 
 if (fax==null||fax==""||fax=="_%")
 {
 alert("Please Enter Fax Number ! ");
 submitOK="false";
 }
 
 if (phres==null||phres==""||phres=="_%")
 {
 alert("Please Enter Telephone Number ! ");
 submitOK="false";
 }
 
 if (streg==null||streg==""||streg=="_%")
 {
 alert("Please Enter Sales Tax Reg. Number ! ");
 submitOK="false";
 }
 
 if (catogary==null||catogary==""||catogary=="_%")
 {
 alert("Please Enter The Catogary of Business ! ");
 submitOK="false";
 }
 
 if (name==null||name==""||name=="_%")
 {
 alert("Please Enter Person Name ! ");
 submitOK="false";
 }
 
 if (mobile==null||mobile==""||mobile=="_%")
 {
 alert("Please Enter The Valid Mobile Number ! ");
 submitOK="false";
 }
 
 if (cnic==null||cnic==""||cnic=="_%")
 {
 alert("Please Enter CNIC ! ");
 submitOK="false";
 }
 
 if (established==null||established==""||established=="_%")
 {
 alert("When Your Firm Established ! ");
 submitOK="false";
 }
 
 if (phno==null||phno==""||phno=="_%")
 {
 alert("Please Enter The Valid Phone Number ! ");
 submitOK="false";
 }
 
 if (email==null||email==""||email=="_%")
 {
 alert("Please Enter EMail Address ! ");
 submitOK="false";
 }
 
 if (ntn==null||ntn==""||ntn=="_%")
 {
 alert("Please Enter The Valid NTN ! ");
 submitOK="false";
 }
 
 
if (submitOK=="false")
 {
 return false;
 }
}

</script>


<style type="text/css">
<!--

#usefullinks {
	position:absolute;
	width:381px;
	height:94px;
	z-index:1;
	left: 38px;
	top: 30px;
}
-->
</style>
</head>
<body style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<!-- ImageReady Slices (index.psd) -->
<center><div id="Table_01">
	<div id="index-01">
	
	  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="621" height="150">
        <param name="movie" value="flash/title.swf">
        <param name="quality" value="high">
        <embed src="flash/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="621" height="150"></embed>
      </object>
    </div>
	<div id="index-02">
	
	
	
		  <div id="contactlink" onClick="MM_goToURL('parent','contact.php');return document.MM_returnValue"></div>
	  <div id="feedback" onClick="MM_goToURL('parent','feedback.php');return document.MM_returnValue"></div>
	  <div id="sitemap" onClick="MM_goToURL('parent','sitemap.php');return document.MM_returnValue"></div>

<?php if(isset($_SESSION['SESS_MEMBER_ID'])) {
	echo '<div id="logout"><a href="logout.php">Logout</a></div>';
	}	  
	 ?> 	
	
	  <div id="search">
	  <form action="search.php" method="get">
	  <td valign="middle" height="30px">
	  <input type="text" name="query" id="query" height="20px" size="35" action="include/js_suggest/suggest.php"></td>
	  <input type="text" name="search" value="1" style="display:none;">
	  <td valign="middle" height="30px">
	  <input type="submit" class="searchbtn" value=""></td>
	  </form>
	  </div>
	
	
	
	</div>
	<div id="index-03">
		
		
				<?php
				$File = "nav.html";
				$fh = fopen($File, 'r');
				$List = fread($fh, filesize($File));
				fclose($fh);
				echo $List;
			?> 
		
		
	</div>
	<div id="index-04">
    <?php
				$File = "menuleft.html";
				$fh = fopen($File, 'r');
				$List = fread($fh, filesize($File));
				fclose($fh);
				echo $List;
			?> 
		
    
    
   
    </div>
	<div id="index-09">
	  <div id="platinum">

<?php
$con = mysql_connect("localhost","appma" ,"database");
mysql_select_db("162_appma", $con);
$sql="SELECT link FROM sponsor WHERE sponsor='platinum'";
if (!$sql)
	  {
	  die('Could Not Complete Please Try Again Later: ' );
	  }
$result=mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<a href="<?php echo $row['link']; ?>" target="_blank">
<img src="uploader/sponsor/platinum.jpg"></a>


	  </div>
	</div>
	<div id="index-13">
	  <div id="gold">
	  
	<?php
$con = mysql_connect("localhost","appma" ,"database");
mysql_select_db("162_appma", $con);
$sql="SELECT link FROM sponsor WHERE sponsor='gold'";
if (!$sql)
	  {
	  die('Could Not Complete Please Try Again Later: ' );
	  }
$result=mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<a href="<?php echo $row['link']; ?>" target="_blank">
<img src="uploader/sponsor/gold.jpg"></a>
	  
	  </div>
    
    </div>
	<div id="index-16">
	  <div id="contact">
	    <p>HEAD OFFICE: Room #104,Azeem Chamber,<br>
		Hasan Ali Effendi Road, Karachi-74200.<br>
	      Phone: 021-32621041,<br>
	      Fax: 021-32210385,<br>
	      Email: paperassociation@homail.com<br>
        URL: www.appma.com.pk</p>
      </div>

	</div>
    <div id="mid">
    <div id="text">


  <table cellpadding="0" cellspacing="0">
    <tr> 
      <td valign="top">
	  </td>
      <div> 
        <div align="left"><font size="+2">MEMBER REGISTRATION FORM</font></div>
      </div>
		
      <td><div> 
         
          <form name="New" action="Member_Insert.php" method="post" onSubmit="return validate()">
            
              <table  border="0" align="left" cellpadding="1" cellspacing="1" dwcopytype="CopyTableRow">
                <tbody valign="top"><tr>
                  <td><div><font size="2">Regestration Number</font></div></td>
                  <td><div> 
                      <input maxlength="50" name="regno" id="regno" size="24">
                    </div></td>
                  
                  <td><div><font size="2">Person Name</font></div></td>
                  <td><div> 
                      <input maxlength="50" name="name" id="name" size="24">
                    </div></td>
                  </tr>
				  
                  <tr> 
                    <td><div><font size="2">Designation</font></div></td>
                    <td><div> 
                        <input maxlength="50" name="status" id="status" size="24">
                      </div></td>
                    <td><div><font size="2">C-NIC Number </font></div></td>
                    <td><div> 
                        <input name="cnic" id="cnic" size="24" maxlength="50">
                      </div></td>
                  </tr>
				                    <tr> 
                    <td><div><font size="2">Name of Firm </font></div></td>
                    <td><div> 
                        <input name="firmname" id="firmname"size="24" maxlength="50">
                      </div></td>

                    <td><div><font size="2">When Established </font></div></td>
                    <td><div> 
                        <input name="established" id="established" size="24" maxlength="50">
                      </div></td>
                  </tr>
                  <tr> 
                    <td><div><font size="2">Office Address</font></div></td>
                    <td><div> 
                        <textarea cols="22" rows="4" name="headoffice" id="headoffice"></textarea>
                      </div></td>

                    <td><div><font size="2">Telephone #</font>  </div></td>
                    <td><div>
                      <input name="phno" id="phno"size="24" maxlength="50">
                    </div></td>
                  </tr>
                  <tr> 
                    <td><div><font size="2">Fax # </font></div></td>
                    <td><div> 
                        <input name="fax" id="fax" size="24" maxlength="50">
                      </div></td>

                    <td><div><font size="2">Mobile # </font></div></td>
                    <td><div>
                      <input name="mobile" id="mobile"size="24" maxlength="50">
                    </div></td>
                  </tr>
                  <tr> 
                    <td><div><font size="2">Telephone Res </font></div></td>
                    <td><div> 
                        <input name="phres" id="phres" size="24" maxlength="50">
                      </div></td>

                    <td><div><font size="2">E-Mail</font></div></td>
                    <td><div>
                      <input name="email" id="email"size="24" maxlength="50">
                    </div></td>
                  </tr>
                  <tr> 
                    <td><div><font size="2">Catogary of Business </font></div></td>
                    <td><div> 
                        <input name="catogary" id="catogary" size="24" maxlength="50">
                      </div></td>

                    <td><div><font size="2">National Tax No. </font></div></td>
                    <td><div>
                      <input name="ntn" id="ntn"size="24" maxlength="50">
                    </div></td>
                  </tr>
                  <tr> 
                    <td><div><font size="2">Sales Tax Reg. No. </font></div></td>
                    <td><div> 
                        <input name="streg" id="streg" size="24" maxlength="50">
                      </div></td>

                    <td><div><font size="2">Add in Voter List </font></div></td>
                    <td><div> 
					
					<select name="voter">
					<option value="yes">Yes</option>
					<option value="no">No</option>
					</select>
					
                    </div></td>
                  </tr>

                  <tr> 
                    <td></td>
                  </tr>
                  <tr> 
                    <td height="4" align="center"><div> 
                        <input type="submit" name="Submit" value="Save" class="button">
                      </div></td>
                  </tr>
                </tbody>
              </table>
            
          </form>
          </div></td>


    </tr>
	
    <tr>

	  <td height="50">

	  </td>
    </tr>
  </table>

</div>
	<div id="bottom">
		<img src="images/index_18.jpg" width="1003" height="42" alt="">	</div>
</div>
</div>
</center>
<!-- End ImageReady Slices -->
</body>
</html>